from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from django.conf import settings
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    #url(r'^$', 'jboss_observer.views.home', name='home'),
    #url(r'^jboss_observer/', 'jboss_observer.analyzer.views.detail'),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT }),
    url(r'^media/js/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }),
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }),
    url(r'^admin/load_main', 'jboss_observer.analyzer.views.load_main'),
    url(r'^admin/delete_reports', 'jboss_observer.analyzer.views.delete_reports'),
     url(r'^admin/export_reports', 'jboss_observer.analyzer.views.export_reports'),
    url(r'^admin/', include(admin.site.urls)),
)
